-- This gets the script of the most recently added button
get the script of button the number of buttons
put it into theScript
put 1 into theLine
repeat until theLine > the number of lines in theScript
if line theLine of theScript contains "go" then
visual iris open slow
push this card
go to card id 3165 of stack "F/X"
exit mouseUp
end if
add 1 to theLine
end repeat
-- if we got this far, the button has no destination
if theLine > the number of lines in theScript then
answer "Set a destination first, please!"
end if
end mouseUp
-- part contents for background part 2
----- text -----
How To Use Button F/X
-- part contents for background part 5
----- text -----
3
-- part contents for background part 1
----- text -----
NOTES:
Since Button F/X works on the LAST BUTTON ADDED, you must create a button, then use Button F/X to modify it BEFORE you create another button.
You can experiment with different effects by setting an effect, trying it out (push your new button, then press the ~ key to return) and then pressing the Button F/X button again to choose a new effect. Button F/X removes any previous visual effect from the button script before it adds the new one.